package com.wf.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wf.domain.SysRole;
import com.wf.dto.PageDTO;
import com.wf.service.SysRoleService;
import com.wf.mapper.SysRoleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author mpk16
* @description 针对表【sys_role(角色表)】的数据库操作Service实现
* @createDate 2024-10-02 09:54:26
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{

    @Override
    public List<SysRole> getRoleList(PageDTO pageDTO) {

        Page<SysRole> sysRolePage = new Page<>(pageDTO.getPageNo(), pageDTO.getPageSize());

        return baseMapper.selectPage(sysRolePage,null).getRecords();
    }
}




